import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '商品名称',
            dataIndex: 'goodsName',
            width: 200,
        },
        {
            title: '商品价格',
            dataIndex: 'goodsPrice',
            width: 200,
        },
        {
            title: '会员价格',
            dataIndex: 'vipPrice',
            width: 200,
        },
        {
            title: '代理商价格',
            dataIndex: 'agentPrice',
            width: 200,
        },
        {
            title: '商品图片（轮播图 ）',
            dataIndex: 'goodsImg',
            width: 200,
        },
        {
            title: '详情图',
            dataIndex: 'detailsImg',
            width: 200,
        },
        {
            title: '商品类型Id',
            dataIndex: 'categoryId',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'isIntegral',
            width: 200,
        },
        {
            title: '所需积分值',
            dataIndex: 'integralValue',
            width: 200,
        },
        {
            title: '商品描述',
            dataIndex: 'goodsDesc',
            width: 200,
        },
        {
            title: '库存',
            dataIndex: 'inventory',
            width: 200,
        },
        {
            title: '销量',
            dataIndex: 'sales',
            width: 200,
        },
        {
            title: '真实销量',
            dataIndex: 'realSales',
            width: 200,
        },
        {
            title: '封面图',
            dataIndex: 'coverImg',
            width: 200,
        },
        {
            title: '有效期多少天',
            dataIndex: 'validDay',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'isHaveValidDay',
            width: 200,
        },
        {
            title: '是否上架（2不上架，1上架）',
            dataIndex: 'isShelf',
            width: 200,
        },
        {
            title: '是否上架到代理商',
            dataIndex: 'isShelfAgent',
            width: 200,
        },
        {
            title: '首页是否推荐',
            dataIndex: 'isHomeRecommend',
            width: 200,
        },
        {
            title: '商城是否推荐',
            dataIndex: 'isMallRecommend',
            width: 200,
        },
        {
            title: '是否在商城展示',
            dataIndex: 'isShowShop',
            width: 200,
        },
        {
            title: '是否限制数量',
            dataIndex: 'isLimitNumber',
            width: 200,
        },
        {
            title: '排序',
            dataIndex: 'goodsSort',
            width: 200,
        },
        {
            title: '扫码文字说明',
            dataIndex: 'useDesc',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '商品名称',
            field: 'goodsName',
            component: 'Input',
            required: true,
        },
        {
            label: '商品价格',
            field: 'goodsPrice',
            component: 'Input',
            required: true,
        },
        {
            label: '会员价格',
            field: 'vipPrice',
            component: 'Input',
            required: true,
        },
        {
            label: '代理商价格',
            field: 'agentPrice',
            component: 'Input',
            required: true,
        },
        {
            label: '商品图片（轮播图 ）',
            field: 'goodsImg',
            component: 'Input',
            required: true,
        },
        {
            label: '详情图',
            field: 'detailsImg',
            component: 'Input',
            required: true,
        },
        {
            label: '商品类型Id',
            field: 'categoryId',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'isIntegral',
            component: 'Input',
            required: true,
        },
        {
            label: '所需积分值',
            field: 'integralValue',
            component: 'Input',
            required: true,
        },
        {
            label: '商品描述',
            field: 'goodsDesc',
            component: 'Input',
            required: true,
        },
        {
            label: '库存',
            field: 'inventory',
            component: 'Input',
            required: true,
        },
        {
            label: '销量',
            field: 'sales',
            component: 'Input',
            required: true,
        },
        {
            label: '真实销量',
            field: 'realSales',
            component: 'Input',
            required: true,
        },
        {
            label: '封面图',
            field: 'coverImg',
            component: 'Input',
            required: true,
        },
        {
            label: '有效期多少天',
            field: 'validDay',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'isHaveValidDay',
            component: 'Input',
            required: true,
        },
        {
            label: '是否上架（2不上架，1上架）',
            field: 'isShelf',
            component: 'Input',
            required: true,
        },
        {
            label: '是否上架到代理商',
            field: 'isShelfAgent',
            component: 'Input',
            required: true,
        },
        {
            label: '首页是否推荐',
            field: 'isHomeRecommend',
            component: 'Input',
            required: true,
        },
        {
            label: '商城是否推荐',
            field: 'isMallRecommend',
            component: 'Input',
            required: true,
        },
        {
            label: '是否在商城展示',
            field: 'isShowShop',
            component: 'Input',
            required: true,
        },
        {
            label: '是否限制数量',
            field: 'isLimitNumber',
            component: 'Input',
            required: true,
        },
        {
            label: '排序',
            field: 'goodsSort',
            component: 'Input',
            required: true,
        },
        {
            label: '扫码文字说明',
            field: 'useDesc',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
